package com.example.orderserver.service;

import com.example.server_engineer.controller.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "food-service",path = "/food")
public interface FoodFeignService {

    @GetMapping("/query/businessid/byname/{name}")
    public R queryBusinessIdByName(@PathVariable String name);

    @GetMapping("/query/byname/{name}")
    public R queryByName(@PathVariable String name);
}
